package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.mapper.SetmealMapper;
import org.springframework.stereotype.Service;

import java.util.List;


public interface SetmealService extends IService<Setmeal> {

    void saveWithDish(SetmealDto setmealDto);

    void removeWithDish(List<Long> ids);

    //根据套餐id查询套餐数据
    List<DishDto> getDish(Long id);

    //回显套餐数据：根据套餐id查询套餐
    SetmealDto getDate(Long id);

    //对菜品批量或者是单个 进行停售或者是起售
    void updateSetmealStatusById(Integer status,List<Long> ids);

    //修改套餐
    boolean updateSetmeal(SetmealDto setmealDto);

}
